package com.chenyun.common.service;

import com.chenyun.common.constants.AppConstans;
import com.chenyun.common.vo.LoginLog;
import com.chenyun.common.vo.OperLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程日志记录
 * @author: Lonni
 * @date: 2022/11/3 0003 10:49
 */
@FeignClient(value = AppConstans.APPLICATION_SYSTEM_NAME,path =AppConstans.AppContextPath.SYSTEM_CONTEXT_PATH )
public interface SysLogFeign extends IBaseFeignService {

    /**
     * 添加登录日志
     * @param log
     */
    @PostMapping("/logininfor/insertLoginLog")
    public void  addLoginLog(@RequestBody LoginLog log);

    /**
     * 添加操作日志
     * @param operLog
     */
    @PostMapping("/operlog/add")
    public void  addOperLog(@RequestBody OperLog operLog);



}
